package webservices;

public class WSMonitoreoProxy implements webservices.WSMonitoreo {
  private String _endpoint = null;
  private webservices.WSMonitoreo wSMonitoreo = null;
  
  public WSMonitoreoProxy() {
    _initWSMonitoreoProxy();
  }
  
  public WSMonitoreoProxy(String endpoint) {
    _endpoint = endpoint;
    _initWSMonitoreoProxy();
  }
  
  private void _initWSMonitoreoProxy() {
    try {
      wSMonitoreo = (new webservices.WSMonitoreoServiceLocator()).getWSMonitoreoPort();
      if (wSMonitoreo != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wSMonitoreo)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wSMonitoreo)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wSMonitoreo != null)
      ((javax.xml.rpc.Stub)wSMonitoreo)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public webservices.WSMonitoreo getWSMonitoreo() {
    if (wSMonitoreo == null)
      _initWSMonitoreoProxy();
    return wSMonitoreo;
  }
  
  public java.lang.String registrarVenta(java.lang.String arg0) throws java.rmi.RemoteException, webservices.IllegalXMLException{
    if (wSMonitoreo == null)
      _initWSMonitoreoProxy();
    return wSMonitoreo.registrarVenta(arg0);
  }
  
  public java.lang.String enviarInformeAuditoria(java.lang.String arg0) throws java.rmi.RemoteException, webservices.IllegalXMLException{
    if (wSMonitoreo == null)
      _initWSMonitoreoProxy();
    return wSMonitoreo.enviarInformeAuditoria(arg0);
  }
  
  
}